import request from '@/utils/request'

// 查询维保公司列表
export function listWbMaintainCompany(query) {
  return request({
    url: '/wb/wbMaintainCompany/list',
    method: 'get',
    params: query
  })
}

// 查询维保公司详细
export function getWbMaintainCompany(id) {
  return request({
    url: '/wb/wbMaintainCompany/' + id,
    method: 'get'
  })
}

// 新增维保公司
export function addWbMaintainCompany(data) {
  return request({
    url: '/wb/wbMaintainCompany',
    method: 'post',
    data: data
  })
}

// 修改维保公司
export function updateWbMaintainCompany(data) {
  return request({
    url: '/wb/wbMaintainCompany',
    method: 'put',
    data: data
  })
}

// 删除维保公司
export function delWbMaintainCompany(id) {
  return request({
    url: '/wb/wbMaintainCompany/' + id,
    method: 'delete'
  })
}
